All Questions
1 question
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1vote
2answers
3kviews
checking if iptables are set on a system in script [duplicate]
I'm writing a script in bash and I need to check if iptables are set...I have this: if [ `iptables-save | grep '^\-' | wc -l` > 0 ] then echo "Iptables already set, skipping..........!" else ...
- The Overflow Blog
- Featured on Meta
Hot Network Questions
- Children and aliens grow up together
- Bounding the digamma function's asymptotic remainder in a vertical strip
- What is stopping traders taking arbitrage in HKD-USD?
- Rude referee: ask to change or wait
- What force, what unit and what rank is this individual?
- Weird loop on Smith chart
- In light cone, why is it a cone and not a sphere, given that light travels in all directions in space-time? Is it a projection of slice of 4D sphere?
- Lilypond Context-Context and Staff-Staff Spacing
- How can heat pumps be more efficient than electric/resistive heating?
- Is there any goodway to make tcolorbox overlay cover the box content?
- Could charging a judge with a felony to get them suspended be "scaled up" indiscriminately by the US Department of Justice?
- Can I use an ESTA to visit my boyfriend before my F-1 visa is valid?
- Quotient groups of two finite groups
- LEGO Typewriter- cannot figure out why there is a gap!
- A "paradox" in classical dynamics
- Type of electric box for mounting outdoor light fixture in siding mounting block
- Some basic questions about size bias coupling: Poisson approximation
- How to achieve the Steel Division 2 frontline? (Dividing area smoothly with curves using a few points)
- Chance level with small sample sizes
- Tetris Perfect Clear puzzles
- \chapter*{ } appear wrong in edited Bjornstrup chapter style
- Combining vs. Separating Predictors: What’s Better for Prediction
- Retrieving connected components from list of neighbors
- Has our understanding of genetics damaged existentialism?